import { useState, useCallback } from 'react';

export default function useUpdate() {
  const [, setV] = useState<any>(false);
  const forceUpdate = useCallback(() => setV(Date.now()), []);

  return forceUpdate;
}
